/**
 * 导出任务进度页面样式
 */

.export-task-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.export-task-container {
    max-width: 850px;
    margin: 2rem auto;
}

/* 卡片样式 */
.export-task-page .task-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.export-task-page .task-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.export-task-page .task-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem;
}

.export-task-page .card-body {
    padding: 1.5rem;
}

.export-task-page .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

/* 标题样式 */
.export-task-page h3 {
    color: #343a40;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* 徽章样式 */
.export-task-page .status-badge {
    font-size: 85%;
    font-weight: 600;
    padding: 0.5em 0.75em;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.export-task-page .status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.export-task-page .status-badge.processing {
    background-color: #2196F3;
    color: #fff;
}

.export-task-page .status-badge.success {
    background-color: #4CAF50;
    color: #fff;
}

.export-task-page .status-badge.warning {
    background-color: #FF9800;
    color: #fff;
}

.export-task-page .status-badge.error {
    background-color: #F44336;
    color: #fff;
}

.export-task-page .status-badge.default {
    background-color: #9E9E9E;
    color: #fff;
}

/* 进度条样式 */
.export-task-page .task-progress {
    height: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
    background-color: #e9ecef;
    margin: 1.5rem 0;
}

.export-task-page .progress-bar {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: #fff;
    transition: width 0.6s ease;
}

.export-task-page .progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.export-task-page .progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }
    to {
        background-position: 0 0;
    }
}

/* 按钮样式 */
.export-task-page .btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.export-task-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.export-task-page .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.export-task-page .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.export-task-page .btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.export-task-page .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.export-task-page .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 下载按钮特殊样式 */
.export-task-page .download-button {
    min-width: 150px;
}

/* 返回按钮特殊样式 */
.export-task-page .back-button {
    min-width: 100px;
}

/* 加载中样式 */
.export-task-page .spinner {
    margin: 3rem auto;
    text-align: center;
}

.export-task-page .spinner::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* 信息面板样式 */
.export-task-page .task-info-panel {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.export-task-page .task-info-grid .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.export-task-page .info-card {
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.export-task-page .info-card-body {
    padding: 0.75rem !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.export-task-page .info-item {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    background-color: #fff;
    border-left: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.export-task-page .info-item i {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
}

.export-task-page .info-item:hover {
    border-left-color: #007bff;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.export-task-page .info-item:last-child {
    margin-bottom: 0;
}

.export-task-page .info-item label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #495057;
    flex: 0 0 auto;
}

.export-task-page .info-item span {
    color: #212529;
}

.export-task-page .records-info {
    background-color: #e8f4fe;
    border-left-color: #007bff;
}

.export-task-page .records-info:hover {
    background-color: #d8ebfd;
}

/* 导出说明样式 */
.export-task-page .export-description {
    border-left: 4px solid #17a2b8;
    background-color: #f0f9fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.export-task-page .export-description:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.export-task-page .export-info-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.export-task-page .export-info-text p {
    margin-bottom: 0;
}

/* 任务计数器样式 */
.export-task-page .task-counter {
    font-size: 1.1rem;
    color: #495057;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.export-task-page .counter-value {
    color: #007bff;
    font-weight: 700;
}

.export-task-page .counter-total {
    color: #6c757d;
    font-weight: 700;
}

/* 错误消息样式 */
.export-task-page .task-error-messages {
    margin: 1.5rem 0;
}

/* 成功图标 */
.export-task-page .success-icon {
    font-size: 3rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .export-task-page .task-info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .export-task-page .card-body {
        padding: 1rem;
    }
    
    .export-task-page .task-card-header {
        padding: 1rem;
    }
    
    .export-task-page .card-footer {
        padding: 0.75rem;
    }
}

/* 进度面板样式 */
.export-task-page .progress-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.export-task-page .progress-panel .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 圆形进度条样式 */
.export-task-page .circular-progress-container {
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    flex: 1;
}

.export-task-page .circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.export-task-page .circular-progress:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.export-task-page .circular-progress-inner {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}

.export-task-page .progress-value {
    font-size: 2.25rem;
    font-weight: bold;
    color: #333;
    background: linear-gradient(135deg, #0066cc, #2979ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.export-task-page .text-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
}

.export-task-page .info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 确保任务卡片行中的面板高度相同 */
.export-task-page .task-info-grid > .col-md-6 {
    display: flex;
}

.export-task-page .task-info-grid > .col-md-6 > div {
    width: 100%;
}

/* 文件名样式 */
.export-task-page .task-file-name {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-task-page .file-name-item {
    border-left-color: #4CAF50;
    background-color: #f1f8e9;
}

.export-task-page .file-name-item:hover {
    background-color: #e8f5e9;
    border-left-color: #43A047;
}

.export-task-page .file-name-text {
    font-weight: 500;
    color: #2e7d32;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
} 